package com.member.shop.dto;

import lombok.Data;
import org.checkerframework.checker.units.qual.C;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author wangxin
 * @Description
 * @date 2024/1/3 15:08
 **/
@Data
public class RegisterMemberDto {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    private String memberPhone;

    /**
     * 登录密码
     */
    @NotBlank(message = "登录密码")
    @Length(min = 8, max = 20, message = "密码长度为8-20位")
    private String password;

    /**
     * 再次确认登录密码
     */
    @NotBlank(message = "再次确认登录密码")
    private String password2;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    private String registerCode;

}
